package com.cloudkinto.service.fbaorderoutput.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Author Administrator
 *
 * @Des
 * @Version
 * @Date 2020/6/5
 */
@Data
@ApiModel
public class FbaOrderOutputPackageAddReq {
    @ApiModelProperty("出库单id")
    private Long orderOutputId;


    @ApiModelProperty("长度")
    @NotNull(message = "pls.input.product.length")
    @Min(value= 0 ,message= "pls.input.length.g0" )
    private double length;


    @ApiModelProperty("宽度")
    @NotNull(message = "pls.input.product.width")
    @Min(value= 0 ,message= "pls.input.width.g0" )
    private double width;


    @ApiModelProperty("高度")
    @NotNull(message = "pls.input.product.height")
    @Min(value= 0 ,message= "pls.input.height.g0" )
    private double height;


    @ApiModelProperty("重量")
    @NotNull(message = "pls.input.product.weight")
    @Min(value= 0 ,message= "pls.input.weight.g0" )
    private double weight;


    @ApiModelProperty("po号")
    @NotBlank(message = "pls.input.po")
    private String poNumber;


    @ApiModelProperty("upc编号")
    @NotBlank(message = "pls.input.upc.or.fnsku")
    private String upcNumber;


    @ApiModelProperty("备注")
    private String tips;


    @ApiModelProperty("包裹数量")
    @NotNull(message = "pls.input.package.count")
    @Min(value= 0 ,message= "pls.input.count.g0" )
    private int packageCount;

//    @NotEmpty(message = "请选择商品")
    private List<FbaOrderOutputProductAddReq> productList;

}
